package com.usian.job;

import com.usian.controller.UserController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class ScheduledDemo {
    private static final Logger log= LoggerFactory.getLogger(UserController.class);

    @Scheduled(cron = "0/2 * * * * ?")
    public void scheduleTese(){
        log.info("Scheduled 定时任务  执行得内容");
    }
}
